package src.com;

import java.util.Scanner;

public class Demo01 {
    public static int number(int a){
        if(a%2==0){
            System.out.println("这个数是偶数！");
        }else {
            System.out.println("这个数是奇数！");
        }
        return 0;
    }
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("请输入一个数字");
        int b = in.nextInt();
        number(b);
    }
}
